﻿using Microsoft.AspNetCore.Mvc;

namespace Qy.Web.Areas.Home.Controllers;

public class Base : Controller
{
    public Base() { }

    //public override async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
    //{
    //    SytemConfig siteConfig = await SiteConfigAsync(context);
    //    ViewBag.SiteConfig = siteConfig;
    //    await base.OnActionExecutionAsync(context, next);
    //}


    //public async Task<SytemConfig> SiteConfigAsync(ActionExecutingContext context)
    //{
    //    ConfigService _configService = context.HttpContext.RequestServices.GetService<ConfigService>();
    //    return await _configService.GetSytemConfigAsync();
    //}
}
